<?php $this->_extends('../_layouts/blank_layout'); ?>
<?php $this->_block('contents');?>
<script type="text/javascript">
$(function(){
});
</script>
<form action="<?php echo url('Online::Amazon/IndependentChangeProductPriceSave')?>" method="post">
	<table class="list_table" width="99%">
		<caption><h3>上架产品信息</h3></caption>
		<thead>
			<tr>
				<th>SKU</th>
				<th>店铺</th>
				<th>ASIN</th>
				<th>折前价</th>
				<th>折后价</th>
				<th>竞价</th>
				<th>修改价</th>
			</tr>
		</thead>
		<tbody>
			<?php foreach ($products as $p):?>
				<tr>
					<td><?php echo $p['sku']?><input type="hidden" name="ids[]" value="<?php echo $p['id']?>" /></td>
					<td><?php echo Shop::getColById($p['shop_id'], 'name')?></td>
					<td><?php echo $p['shop_item_id']?></td>
					<td><?php echo sprintf('%.2f', $p['price'])?></td>
					<td><?php echo sprintf('%.2f', $p['listing_price'])?></td>
					<td><?php echo sprintf('%.2f', $p['competitive_price'])?></td>
					<td><label><input type="text" name="change_price[<?php echo $p['id']?>]" value="" style="width: 80px" /></label></td>
				</tr>
			<?php endforeach;?>
		</tbody>
	</table>
	<div style="width: 99%;margin-top: 5px;">
		<input type="hidden" name="shop_id" value="<?php echo $shop_id?>" />
		<input type="submit" value="提交" style="width: 80px; height: 25px;">
	</div>
</form>
<?php $this->_endblock();?>